NexusPi Git Node
native/LoRaFactory.h HEAD (592c826d) Text, 740 B
T8b949e// Native-build LoRa driver factory. Runtime-selects one of the three
T8b949e// concrete modem drivers (sx126x / sx127x / sx128x) based on the modem id
T8b949e// loaded from rnoded.conf, calls its driver-native setPins() with
T8b949e// the correct arity using the global pin_* values already populated by
T8b949e// native_pinmap::apply(), and returns the polymorphic ILoRaRadio* the
T8b949e// firmware then drives via virtual dispatch.
Tff7b72#Tff7b72ifndef NATIVE_LORA_FACTORY_H
Tff7b72#Tff7b72define NATIVE_LORA_FACTORY_H
Tff7b72#Tff7b72include T8b949e<cstdint>
Te6edf3class Te6edf3ILoRaRadioTb4b4b4;
Te6edf3namespace Te6edf3native_lora Tb4b4b4{
T8b949e// modem_id values match the constants in ../Modem.h (SX1262, SX1276,
T8b949e// SX1278, SX1280). Returns nullptr if the id is unrecognized.
Te6edf3ILoRaRadioTff7b72* Td2a8ffcreate_radioTb4b4b4(Tffa657uint8_t Te6edf3modem_idTb4b4b4)Tb4b4b4;
Tb4b4b4} T8b949e// namespace native_lora
Tff7b72#Tff7b72endif
Served by rngit 1.5.4 - Generated in 0.01s